using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using TanashCMS.Business;

/// <summary>
/// Summary description for SmartPageComponentBase
/// </summary>
public abstract class SmartPageComponentControlBase : System.Web.UI.UserControl
{
    public virtual event EventHandler onChangeComponent;
    public virtual void ChangeMode(FormViewMode NewMode) { }
    public virtual event EventHandler onSaveComponent;
    public virtual event EventHandler onCancelComponent;

    protected SmartPageComponent mComponent = null;
    public SmartPageComponent SmartComponent { get { return mComponent; } set { mComponent = value; } }
    protected WebPage mWebPage = null;
    public WebPage WebPage { get { return mWebPage; } set { mWebPage = value; } }
    protected int mSlotIndex = 0;
    public int SlotIndex { get { return mSlotIndex; } set { mSlotIndex = value; } }

    public SmartPageComponentControlBase()
    {

    }

    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
    }
}
